package org.robotlegs.demos.helloflex.model
{
	import flash.events.Event;
	
	public class MessageModelEvent extends Event
	{
		public static const MESSAGE_ADDED:String = "messageAdded";
		public static const  MESSAGES_CLEARED:String = "messagesCleared";
		private var _message:String;
		public function get message():String
		{
			return _message;
		}
		
		public function MessageModelEvent(type:String, message:String=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_message = message;
		}
		
		override public function clone():Event
		{
			return new MessageModelEvent(type, message, bubbles, cancelable);
		}
	}
}